package com.dora.basic.basic;

import java.util.Hashtable;

/**
 * 开放地址法示例
 *
 * @author hanchen
 * @date 2025/02/06
 */
public class OpenAddressingExample {
    public static void main(String[] args) {
        Hashtable<Integer, String> table = new Hashtable<>();

        // 插入元素
        table.put(1, "One");
        table.put(2, "Two");
        table.put(3, "Three");
        table.put(4, "Four");
        table.put(4, "Four");

        // 打印元素
        System.out.println(table);
    }
}
